package de.tabuma.soap.entity.xsd;

import java.util.*;
import java.io.*;
import javax.jdo.annotations.*;

import de.tabuma.soap.annotation.*;

/**
 * This class represents an element of an wsdl document called &quot;group&quot;.
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 02:57:12 $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SoapClassDefinition(@SoapClassMapping(mappingString="group",mappingType=SoapClassMapping.MappingType.XSD))
public class XsGroup implements Serializable {

    public XsGroup() {
        this.xsAnnotationId = new Long(0);
        this.xsAllOrXsChoiceOrXsSequence = new ArrayList<Long>();
    }

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id1;
    public Long getId1() {
        return id1;
    }

    @Persistent
    @SoapAttribute
    protected String name;
    public String getName() {
        return name;
    }
    public void setName(String value) {
        this.name = value;
    }

    @Persistent
    @SoapAttribute
    protected String ref;
    public String getRef() {
        return ref;
    }
    public void setRef(String value) {
        this.ref = value;
    }

    @Persistent
    @SoapAttribute
    protected String minOccurs;
    public String getMinOccurs() {
        return minOccurs;
    }
    public void setMinOccurs(String value) {
        this.minOccurs = value;
    }

    @Persistent
    @SoapAttribute
    protected String maxOccurs;
    public String getMaxOccurs() {
        return maxOccurs;
    }
    public void setMaxOccurs(String value) {
        this.maxOccurs = value;
    }

    @Persistent
    @SoapAttribute
    protected String id;
    public String getId() {
        return id;
    }
    public void setId(String value) {
        this.id = value;
    }

    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=XsAnnotation.class))
    protected Long xsAnnotationId;
    public Long getXsAnnotationId() {
        return xsAnnotationId;
    }
    public void setXsAnnotationId(Long xsAnnotationId) {
        this.xsAnnotationId = xsAnnotationId;
    }

    @Persistent
    @SoapFieldDefinition(
        {
            @SoapFieldClass(classDefinition=XsAll.class),
            @SoapFieldClass(classDefinition=XsChoice.class),
            @SoapFieldClass(classDefinition=XsSequence.class)
        }
    )
    protected List<Long> xsAllOrXsChoiceOrXsSequence;
    public List<Long> getXsAllOrXsChoiceOrXsSequence() {
        return this.xsAllOrXsChoiceOrXsSequence;
    }
    public void setXsAllOrXsChoiceOrXsSequence(List<Long> xsAllOrXsChoiceOrXsSequence) {
        this.xsAllOrXsChoiceOrXsSequence = xsAllOrXsChoiceOrXsSequence;
    }
    
}
